<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>题库管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
			<div class="tit">题库管理</div>
			<ul>
				<li><a href="/subject">科目管理</a></li>
				<li><a href="/tk_category">题库分类</a></li>
				<li><a href="/tiku">自有题库</a></li>
				<li class="curr"><a href="/tiku/system">系统题库</a></li>
				<li><a href="/tiku/test_volume">组卷管理</a></li>
			</ul>
		</div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
			<!--star conter-->
			<div class="cetContent">
				<div class="tit p-lr20">
					<span class="curr">系统题库</span>
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
					<div class="mainContainer line-all">
						<!--star tabMainCont-->
						<div class="tabMainCont">
							<!--star会员管理-->
							<form class="layui-form layui-form-pane1" method="post" delete_action="/topic/delete">
								<table class="layui-table" lay-even lay-skin="row">
									<thead>
										<tr>
											<th>序号</th>
											<th>题库分类</th>
											<th>授权时间</th>
											<th>过期时间</th>
											<th>激活码总数量</th>
											<th>激活码剩余数量</th>
											<th>操作</th>
										</tr>
									</thead>
									<{foreach from=$system_topic_list item=item}>
										<tr>
											<td class="tal"><{$item.id}></td>
											<td class="tal not_lb"><{$item.name}></td>
											<td class="tal not_lb"><{$item['add_time']|date_format:'%Y-%m-%d'}></td>
											<td class="tal not_lb"><{$item['expire_tiem']|date_format:'%Y-%m-%d'}></td>
											<td class="tal not_lb"><{$item.total_code_num}></td>
											<td class="tal not_lb"><{$item.surplus_code_num}></td>
											<td class="tal not_lb">
											<a href="javascript:;" class="show_system_topic" cate_id="<{$item.category_id}>">查看激活码使用记录</a>
											</td>
										</tr>
									<{/foreach}>
								</table>
							</form>

							<div class="pages p-tb20" style="text-align:right;">
								<{$pagination}>
							</div>

						</div>
						<!--star会员管理-->
					</div>
						<!--end tabMainCont-->
				</div>

			</div>
		</div>

	</div>
	<{include file="footer.html"}>
	<script>
		$(function(){
			$(".show_system_topic").click(function(){
				layer.open({
					type: 2,
					title: '激活码使用记录',
					shadeClose: true,
					shade: 0.8,
					area: ['90%', '90%'],
					maxmin: true,
					content: '/tiku/system_topic_code/'+$(this).attr("cate_id") //iframe的url
				}); 
			})
		});
	</script>
</div>
</body>
</html>
